import request from '@/utils/request'
export function scheduledJobs(query) {
  return request({
    url: '/scheduled/jobs',
    method: 'get',
    params: query
  })
}
export function openOrclose(query) {
  return request({
    url: '/scheduled/openOrclose',
    method: 'get',
    params: query
  })
}
export function deleted(query) {
  return request({
    url: '/scheduled/deleted',
    method: 'get',
    params: query
  })
}

export function abortMission(query) {
  return request({
    url: '/scheduled/abortMission',
    method: 'get',
    params: query
  })
}
export function batchDeleted(query) {
  return request({
    url: '/scheduled/batchDeleted',
    method: 'get',
    params: query
  })
}

export function triggerJob(query) {
  return request({
    url: '/scheduled/triggerJob',
    method: 'get',
    params: query
  })
}
export function rescheduleJob(data) {
  return request({
    url: '/scheduled/rescheduleJob',
    method: 'post',
    data
  })
}
//任务日志接口
export function scheduleJobLogs(data) {
  return request({
    url: '/scheduled/log/logs',
    method: 'post',
    data
  })
}
